#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright @ 2014 OPS, Qunar Inc. (qunar.com)
#
# Author: tingfang.bao <tingfang.bao@qunar.com>
# DateTime: 15-3-10 下午5:35
from flask import Flask, send_from_directory

app = Flask(__name__)

# 可以下载uploads目录的文件，　GET http://127.0.0.1:5000/uploads/data.csv
@app.route("/uploads/<filename>")
def uploaded_file(filename):
    return send_from_directory("uploads", filename)


if __name__ == '__main__':
    app.run(debug=True)